package com.panshi.servers;

import com.panshi.api.bean.AnswerCommentsHDBean;
import com.panshi.api.bean.AnswerCommentsLinkBean;
import com.panshi.api.util.PageSizeVO;
import com.panshi.pojo.AnswerCommentsHDVO;
import com.panshi.pojo.AnswerHDVO;

import java.util.List;

/**
 * @author XiaoWangYa
 * @version 1.0
 * @date 2020/8/11 0011 下午 9:52
 */
public interface AnswerCommentsHDServers {

    // 回答评论新增
    int addAnswerCommentsHDInfo (AnswerCommentsHDBean answerCommentsHDBean);

    // 回答评论删除
    void deleteUserAnswerComments (int id);

    // 查询指定回答下所有评论
    List<AnswerCommentsHDVO> queryAssignAnswerCommentsAll (PageSizeVO pageSizeVO);

    // 查询评论回复
    List<AnswerCommentsHDVO> queryAssginAnswerReplyInfo (PageSizeVO pageSizeVO);

    // 查询指定回答
    AnswerHDVO queryAssignAnswer (int id);

    // 增加指定回答评论量
    void updateAnswerCountSum (AnswerHDVO answerHDVO);

    // 查询指定评论信息
    AnswerCommentsHDVO queryAssginComments (int id);

    // 点赞评论
    void updateAssignAnswerCommentsLink (AnswerCommentsHDVO answerCommentsHDVO);

    // 取消评论点赞
    void cancelAnswerCommentsLink (AnswerCommentsLinkBean answerCommentsLinkBean);

    // 增加评论点赞信息(点赞表)
    void addAnswerCommentsLinkfo (AnswerCommentsLinkBean answerCommentsLinkBean);

    // 查询评论是否被指定用户所点赞
    AnswerCommentsLinkBean queryAnswerCommentsLink (AnswerCommentsLinkBean answerCommentsLinkBean);
}
